<script>
  let name = ''
  let scoops = 1
</script>

<input bind:value={name} type="text" placeholder="请输入内容" />
<p>Hello {name || 'Svelte'}!</p>
<!-- 多选 -->
<label>
  <input type="radio" bind:group={scoops} value={1} />
  One scoop
</label>

<label>
  <input type="radio" bind:group={scoops} value={2} />
  Two scoops
</label>
<p>scoops 的值是： {scoops}</p>
